function loginFuc(){
	var usn=$("#username").val();
	var pwd=$("#password").val();
	var pwdMd5=$.md5(pwd);
	//校验用户名必须为邮箱
	var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
	if(!myreg.test(usn)){
	  alert('输入用户名格式不正确！');
    }
	else{
		var postData={
			"account":usn,
			"password":pwdMd5
		}
		$.ajax({
			type:"POST",
			url:"/hotFixServer/user/login",
			data:postData,
			success: function(data){
				if(data.model['success']==0){
					window.location.href="main.html?id="+data.model['userid'];
				}
				else if(data.model['success']==1){
					alert(data.model['info']);
				}
				else if(data.model['success']==-1){
					alert(data.model['info']);
				}
				
			}
		});
	}
}